﻿@{ 
    ViewBag.Title = "OrderRefund";
    int? showtype = (int?)ViewBag.ShowType;
    showtype = showtype ?? 0;   //初始显示所有
    string pagename = "所有记录";
    switch (showtype)
    {
        case 1:
            pagename = "订单退款";
            break;
        case 2:
            pagename = "退款记录";
            break;
        case 3:
            pagename = "退货记录";
            break;
        case 4:
            pagename = "货品退款";
            break;
    }
   }
@model IEnumerable<Himall.Core.Plugins.PluginInfo>
<script src="~/Scripts/jquery.hiMallDatagrid.js"></script>
<script src="~/Scripts/jquery.himallLinkage.nocreate.js"></script>
<script src="~/Scripts/jquery.placeholder.min.js"></script>
<script src="~/Scripts/bootstrap.autocomplete.js"></script>
<script src="~/Scripts/jquery.json.js"></script>
<script src="~/Areas/SellerAdmin/Scripts/orderRefundManagement.js"></script>

<link rel="stylesheet" type="text/css" href="~/Content/bootstrap-datetimepicker.min.css">
<script type="text/javascript" src="~/Scripts/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="~/Scripts/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript">
    var showtype = '@(showtype)';
    $(function () {
        $(".start_datetime").datetimepicker({
            language: 'zh-CN',
            format: 'yyyy-mm-dd',
            autoclose: true,
            weekStart: 1,
            minView: 2
        });
        $(".end_datetime").datetimepicker({
            language: 'zh-CN',
            format: 'yyyy-mm-dd',
            autoclose: true,
            weekStart: 1,
            minView: 2
        });
        $(".start_datetime").click(function () {
            $('.end_datetime').datetimepicker('show');
        });
        $(".end_datetime").click(function () {
            $('.start_datetime').datetimepicker('show');
        });
        $('.start_datetime').on('changeDate', function () {
            if ($(".end_datetime").val()) {
                if ($(".start_datetime").val() > $(".end_datetime").val()) {
                    $('.end_datetime').val($(".start_datetime").val());
                }
            }

            $('.end_datetime').datetimepicker('setStartDate', $(".start_datetime").val());
        });


    });
</script>

<div class="container">
    <ul class="nav nav-tabs-custom clearfix">
        <strong>退货退款</strong>
        <li type="statusTab" class="active"><a>@(pagename)</a></li>
        <li value="1" type="statusTab"><a>待处理</a></li>
        <em class="primary-btn">
            <span class="glyphicon glyphicon-question-sign"></span>
            <div class="primary">
                <h3>温馨提示：</h3>
                <span>*</span><p>处理订单的退货、退款问题</p>
            </div>
        </em>
    </ul>

    <div class="search-box">
        <form class="custom-inline" role="form">
            <div class="form-group">
                <label class="label-inline" for="">开始日期</label>
                <input id="inputStartDate" class="form-control input-ssm start_datetime" type="text" >
            </div>
            <div class="form-group">
                <label class="label-inline" for="">结束日期</label>
                <input id="inputEndDate" class="form-control input-ssm end_datetime" type="text" >
            </div>
            <div class="form-group">
                <label class="label-inline" for="">订单编号</label>
                <input class="form-control input-ssm" type="text" id="txtOrderId">
            </div>
            <div class="form-group">
                <label class="label-inline" for="">商品名称</label>
                <input class="form-control input-ssm" type="text" id="txtProductName">
            </div>
            <div class="form-group">
                <label class="label-inline" for="">买家</label>
                <input class="form-control input-ssm" type="text" id="txtUserName">
            </div>
            <div class="submit"><button type="button" class="btn btn-primary btn-sm" id="searchButton">搜 索</button></div>
        </form>
    </div>
    <table id="list" class="table"></table>
</div>

